<!----><?php
require 'conn.php';
require 'config.php';
require 'inc/function.php';
$ye="index";
    ?>

 <!DOCTYPE html>
<html>
<head>
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<![endif]-->
<meta charset="utf-8">
<title><?php echo $site_name?></title>
<meta name="viewport" content="width=1200,initial-scale=0.3,maximum-scale=1.0,user-scalable=yes" />
<meta name="keywords" content="<?php echo $site_keyword?>" />
<meta name="description" content="<?php echo $site_description?>" />
<script type="text/javascript" src="js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/global.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script type="text/javascript" src="js/main.js"></script>
    <link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css">
    <script type="text/javascript" src="js/owl.carousel.js"></script>
    <script type="text/javascript" src="inc/function.js"></script>
      
     <script>
         $(function () {
             $(".banner").owlCarousel({ items: 1 })
             $(".news_owl").owlCarousel({ items: 3, margin: 10, dots: false, nav: true, navText: ["<span></span>", "<span></span>"],loop:true })
             $(".toggle_list .list").hide().eq(0).show();
             $(".tit_toggle span").hover(function () {
                 if ($(this).hasClass("on")) { }
                 else {
                     $(this).addClass("on").siblings().removeClass("on")
                     $(".toggle_list .list").stop().hide().eq($(this).index()).stop().fadeIn();
                 }
             }, function () { })

         })
     </script>

     
</head>
<body>
   <?php require 'header.php'?>

 <!-------------------------------------- 内容开始 -------------------------------------->

      
    <div class="mainer">
        <div class="banner">
           
           <?php

	$str='';

	$query=mysql_query('select * from '.$language.'_ad order by a_order,a_id');

	if (mysql_num_rows($query)>0){

	while ($row=mysql_fetch_array($query)){

 
			$str.='<div class="item"><a href="'.$row['a_url'].'" style="background:url('.$row['a_image'].') no-repeat center center"></a></div>';

	 

	}

	}

	echo $str

	?>

          </div>
        <div class="page page1">
            <div class="wrap">
                <div class="title">
                    <h2>业务领域</h2>
                    <p class="toUpper">Business areas</p>
                </div>
                <div class="page1_list">
                    <ul>
                       
                       
                         <?php
 	$str='';
 	$query=mysql_query('select a_id,a_name,a_desc from '.$language.'_yewu order by a_order,a_id limit 4');

	if (mysql_num_rows($query)>0){
$i=1;
	while ($row=mysql_fetch_array($query)){

 
			$str.=' <li>
                            <div class="title2"><span><img src="images/img'.$i.'.png" /></span></div>
                            <div class="text">
                                <h3>'.$row['a_name'].'</h3>
                                <p>'.$row['a_desc'].'</p>
                                <p class="p_btn"><a href="yewu.php?id='.$row['a_id'].'">查看详情</a></p>
                            </div>
                        </li>';

	 
$i++;
	}

	}

	echo $str

	?>
     
                    </ul>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="page page2">
            <div class="wrap">
                <div class="title">
                    <h2>关于我们</h2>
                    <p class="toUpper">About us</p>
                </div>
                <div class="page2_list">
                    <div class="item flt">
                        <div class="img"><img src="<?php echo RsField('select a_image from '.$language.'_about where a_id=2')?>" /></div>
                    </div>
                    <div class="item frt">
                        <div class="tit">
                            <p>宏兆集团qq</p>
                            <h3>创建于<span>1995</span><label>年</label></h3>
                            <p>始终贯彻“以人为本”的理念</p>
                        </div>
                        <div class="text">
                            <div class="images1"><img src="images/text.png" /></div>
                        </div>
                        <div class="div_txt">
                            <p><?php echo RsField('select a_content from '.$language.'_about where a_id=2')?></p>
                        </div>
                        <div class="div_btn"><a href="aboutus.php">查看详情</a></div>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="page page3">
            <div class="page3_bg"></div>
            <div class="wrap">
                <div class="tit_toggle">
                    <?php
				$str='';
				$query=mysql_query('select n_id,n_name from '.$language.'_news_class   order by n_order,n_id limit 2');
				if (mysql_num_rows($query)>0){
					$i=1;
				while($row=mysql_fetch_array($query)){
					if($i==1)
					{
					$str.='<span class="on">'.$row['n_name'].'</span>';
					}
					else{
				 $str.='<span>'.$row['n_name'].'</span>';

						}
				$i++;
				}
				}
				echo $str;
				?>
                    
                </div>
                <div class="toggle_list">
                   
                   <?php
				$str='';
				$query=mysql_query('select n_id,n_name from '.$language.'_news_class  order by n_order,n_id limit 2');
				if (mysql_num_rows($query)>0){
					 
				while($row=mysql_fetch_array($query)){
					  $str.=' <div class="list">
                        <div class="news_owl">';
                 $query2=mysql_query('select n_id,n_title,n_date,n_image,k_description from '.$language.'_news where n_class='.$row['n_id'].' and n_image<>""  order by n_id desc limit 10');
				if (mysql_num_rows($query2)>0){
					 
				while($row2=mysql_fetch_array($query2)){
					$str.=' <div class="item">
                                <div class="img" style="background:url('.$row2['n_image'].') no-repeat center center; background-size:cover"><div class="div_ico"><span></span></div></div>
                                <div class="text">
                                    <h2><a href="shownews.php?id='.$row2['n_id'].'">'.$row2['n_title'].'</a></h2>
                                    <p>'.date('Y-m-d',strtotime($row2['n_date'])).'</p>
                                </div>
                                <div class="div_txt">
                                    <p>'.CutStr($row2['k_description'],120).'</p>
                                </div>
                                <div class="div_btn"><a href="shownews.php?id='.$row2['n_id'].'">查看详情</a></div>
                            </div>
							  ';
				}
				
				}
							 
                        $str.='</div>
                        <div class="load_more"><a href="news.php?id='.$row['n_id'].'">VIEW MORE</a></div>
                    </div>';
				}
				}
				echo $str;
				?>
                
                   
                
                </div>
            </div>
        </div>
        <div class="page page4">
            <div class="wrap">
                <div class="title">
                    <h2>合作伙伴</h2>
                    <p class="toUpper">partners</p>
                </div>
                <div class="page4_link">
                    <div class="more"><a href="huoban.php">MORE+</a></div>
                    <ul>
                       <?php

	$str='';

	$query=mysql_query('select * from '.$language.'_links order by n_id desc  limit 10');

	if (mysql_num_rows($query)>0){

	while ($row=mysql_fetch_array($query)){

 
			$str.='<li><a href="'.$row['n_url'].'"><img src="'.$row['n_image'].'" /></a></li>';

 
	}

	}

	echo $str

	?>

                      
                        
                        
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-------------------------------------- 内容结束 -------------------------------------->
  <?php require 'footer.php'?>

    
</body>
</html>